package com.nervenets.shopping.controller.data;

import com.nervenets.general.entity.ResponseResult;
import com.nervenets.general.exception.LogicException;
import com.nervenets.general.web.BaseEntityController;
import com.nervenets.general.web.params.IdsParams;
import com.nervenets.general.web.params.UnsupportedFormParams;
import com.nervenets.shopping.controller.data.params.DataOfDayStatePagingParams;
import com.nervenets.shopping.hibernate.domain.data.DataOfDayState;
import com.nervenets.shopping.service.DataOfDayStateService;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;


@Api(value = "日统计接口v1", tags = "日统计相关接口")
@RestController
@RequestMapping("/api/day/data")
public class DataOfDayStateController extends BaseEntityController<DataOfDayState, DataOfDayStateService, UnsupportedFormParams<DataOfDayState, DataOfDayStateService>, DataOfDayStatePagingParams, DataOfDayState, DataOfDayState> {
    @Override
    public ResponseEntity<ResponseResult<DataOfDayState>> edit(@Valid @RequestBody UnsupportedFormParams<DataOfDayState, DataOfDayStateService> params, HttpServletRequest request, HttpServletResponse response) {
        throw new LogicException("not support");
    }

    @Override
    public ResponseEntity<ResponseResult<Void>> del(@Valid @RequestBody IdsParams params, HttpServletRequest request, HttpServletResponse response) {
        throw new LogicException("not support");
    }
}
